com.supermap.mapping

Class LayerHeatmap



  • public class LayerHeatmap
    extends Layer
    The heat map layer
    • Constructor Detail

      • LayerHeatmap

        public LayerHeatmap()
    • Method Detail

      • getKernelRadius

        public int getKernelRadius()
        The kernel radius
        Returns:
        Returns the kernel radius (from 0 to 50) for density calculation. Unit: screen coordinate
      • setKernelRadius

        public void setKernelRadius(int radius)
        The kernel radius
        Parameters:
        radius - Sets the kernel radius (from 0 to 50) for density calculation. Unit: screen coordinate
      • getMaxColor

        public Color getMaxColor()
        The color of highly dense points
        Returns:
        Return the color of highly dense points
      • setMaxColor

        public void setMaxColor(Color color)
        Sets the color of highly dense points
        Parameters:
        color - The color value.
      • getMinColor

        public Color getMinColor()
        The color of low dense points
        Returns:
        Return the color of low dense points
      • setMinColor

        public void setMinColor(Color color)
        Sets the color of low dense points
        Parameters:
        color - The color value.
      • setMaxValue

        public void setMaxValue(double vlaue)
        Sets the maximum value
        Parameters:
        vlaue - the maximum value
      • getMaxValue

        public double getMaxValue()
        Gets the maximum value
        Returns:
        the maximum value
      • setMinValue

        public void setMinValue(double value)
        Sets the minimum value
        Parameters:
        value - The maximum value
      • getMinValue

        public double getMinValue()
        Gets the minimum value
        Returns:
        the minimum value
      • setIntensity

        public void setIntensity(double value)
        Sets the color ratio of high-density points
        Parameters:
        value - the color of high-density points (MaxColor) and the color of low-density points (MinColor) to determine the color ratio of high-density points in the color gradient. The larger the value, the higher the ratio. The value ranges from 0 to 1.
      • getIntensity

        public double getIntensity()
        Returns the color ratio (ranging from 0 to 1) of high-density points
        Returns:
        returns the color of high-density points (MaxColor) and the color of low-density points (MinColor) to determine the color ratio of high-density points in the color gradient. The larger the value, the higher the ratio.
      • setFuzzyDegree

        public void setFuzzyDegree(double value)
        Sets the fuzzy extent of the color gradient in a heat map
        Parameters:
        value - the fuzzy extent of the color gradient in a heat map. It ranges from 0 to 1
      • getFuzzyDegree

        public double getFuzzyDegree()
        Returns the fuzzy extent of the color gradient in a heat map. It ranges from 0 to 1
        Returns:
        Returns the fuzzy extent of the color gradient in a heat map
      • setWeightField

        public void setWeightField(java.lang.String field)
        Sets the weighted field
        Parameters:
        field - a weighted field. Apart from reflecting the relative density of points, a heat layer can represent point density weighted according based on a field.
      • getWeightField

        public java.lang.String getWeightField()
        Returns the weighted field
        Returns:
        return a weighted field. Apart from reflecting the relative density of points, a heat layer can represent point density weighted according based on a field.
      • getAggregationFun

        public AggregationFunctionType getAggregationFun()
        Gets the aggregation function applied to the aggregation fields of a heat map.
        Returns:
        Gets the aggregation function applied to the aggregation fields of a heat map.
      • setAggregationFun

        public void setAggregationFun(AggregationFunctionType type)
        Sets the aggregation function applied to the aggregation fields of a heat map.
        Parameters:
        type - Sets the aggregation function applied to the aggregation fields of a heat map.
      • setColorset

        public void setColorset(Colors colors)
        Sets the color collection
        Parameters:
        colors - color collection.
      • getColorset

        public Colors getColorset()
        Gets the color collection
        Returns:
        the color collection
      • setGradientColorType

        public void setGradientColorType(ColorType type)
        Sets the gradient mode in a heat map
        Parameters:
        type - Sets the color gradient mode in a heat map including: HSB and RGB
      • getGradientColorType

        public ColorType getGradientColorType()
        Gets the gradient mode in a heat map
        Returns:
        Gets the color gradient mode in a heat map including: HSB and RGB